# not working on ec2 type instances but ommands ok if executed manually

installRunTomcat(){
echo "get the directory"
wget http://ubuntuone.com/6ZhkDEVe0syhqvahRPWZH7
echo "tar -xvf .."
tar -xvf 6ZhkDEVe0syhqvahRPWZH7
echo "change rights"
sudo chmod 777 -R apache-tomcat-7.0.26/
echo "start tomcat"
cd apache-tomcat-7.0.26/bin
startup.sh
}
installRunTomcat